Total Complexity | 18 |
Dependencies | 2 |
Dependents | 1 |
Total lines | 116 |
Lines of code | 58 |
Logical lines of code | 33 |
Comment lines | 26 |
Methods | 12 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
generateHeader() | 59 | 7 | 12 | |
testValidJsonAndHeader() | 72 | 1 | 5 | |
testInvalidJson() | 72 | 1 | 5 | |
testValidJsonAndInvalidHeader() | 75 | 1 | 4 | |
testMalformedHeader() | 75 | 1 | 4 | |
testNoSignaturesWithExpectedScheme() | 74 | 1 | 4 | |
testNoValidSignatureForPayload() | 74 | 1 | 4 | |
testTimestampTooOld() | 73 | 1 | 4 | |
testTimestampTooRecent() | 73 | 1 | 4 | |
testValidHeaderAndSignature() | 75 | 1 | 4 | |
testHeaderContainsValidSignature() | 74 | 1 | 4 | |
testTimestampOffButNoTolerance() | 74 | 1 | 4 |